package com.plian.system.dao.fr.gsalaryslip;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.dao.DaoSupport;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class GsalarySlipAdjustmentDao {

    @Resource(name = "daoSupport")
    private DaoSupport dao;


    public List<PageData> listByCondition(PageData pd) throws Exception {
        return (List<PageData>) dao.findForList("GsalaryAdjustmentMapper.listByCondition", pd);
    }

    public List<PageData> findListByYear(PageData pd) throws Exception {
        return (List<PageData>) dao.findForList("GsalaryAdjustmentMapper.findListByYear", pd);
    }

}
